package petshop.agronunes.negocio;
import java.util.List;


import petshop.agronunes.dao.HistoricoDAO;

import petshop.agronunes.entidade.Historico;


public class HistoricoBLL {
	public Integer insert(Historico historico) throws Exception {
		try {
			return new HistoricoDAO().insert(historico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public void update(Historico historico) throws Exception {
		try {
			new HistoricoDAO().update(historico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public Historico GetById(Integer id) throws Exception {
		try {
			return new HistoricoDAO().GetById(id);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public void delete(Historico historico) throws Exception {
		try {
			new HistoricoDAO().delete(historico);
		} catch (Exception e) {
			throw new Exception(e);
		}
	}
	
	public List<Historico> getAll() throws Exception {
		try {
			return new HistoricoDAO().getAll();
		} catch (Exception e) {
			throw new Exception(e);
		}
	}

}
